package yangyongchao.com.mymvpdome;

import android.util.Log;
import android.widget.EditText;
import android.widget.TextView;


/**
 * Created by yyc on 2018/2/5.
 */

public class HomePresenter {
    private String TAG = getClass().getName();
    private HomeView mView;

    public HomePresenter(HomeView view) {
        mView = view;
    }
    public void dataToView(EditText editText, TextView textView){
        HomeModel.getEtData(editText, textView, new HomeCallback() {
            @Override
            public void Success(String data) {
                mView.showData("设置文本成功");
            }

            @Override
            public void Error(String msg) {
                mView.showData("设置文本失败");
            }
        });
    }
}
